package com.newbingo.dao;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.newbingo.dao.imple.IGameRebateLogDao;
import com.newbingo.entity.GameRebateLog;

public class GameRebateLogDao extends HibernateDaoSupport implements IGameRebateLogDao{
	private static final Log log=LogFactory.getLog(GameRebateLogDao.class);
	
	/* 
	 * 保存游戏返利记录
	 */
	public void save(GameRebateLog instance){
		log.debug("save GameRebateLog instance");
		try{
			getSession().save(instance);
			log.info("save successful");
		}catch(RuntimeException re){
			log.error("save failed");
		}
	}
}
